package com.hamster.crmpre.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hamster.crmpre.pojo.SchemeResult;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author Tarry
 * @create 2019/12/31 11:27
 */
@Repository
@Mapper
public interface SchemeResultMapper extends BaseMapper<SchemeResult> {
    /**
     * 根据上级id 先删除再更新
     * @param id
     */
    @Delete("delete from scheme_result where scheme_employee_id = #{id}")
    void deleteScheme(String id);
}
